import React from 'react';
import './index.less';
import classnames from 'classnames';

interface IconProps {
  fontFamily?: string
  prefix?: string,
  className?: string,
  fontSize?: string,
}
const Icon = ({
  fontFamily,
  prefix = 'aimc-icon-',
  className,
  fontSize = '14px'
}: IconProps) => {
  const font = fontFamily || 'aimc-iconfont';
  const suffix = prefix + className;
  return <span className={`${font} ${suffix}`} style={{fontSize}}></span>
}

export default Icon;